<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>Microi吾码低代码平台：高效便捷的生成与管理全能助手 | 澪贰</title><meta name="author" content="澪贰"><meta name="copyright" content="澪贰"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="ffffff"><meta name="description" content="随着技术的快速发展，编程工具不断推陈出新。Microi吾码是一款轻量级、高效的代码编辑和管理平台，旨在帮助开发者更好地编写、组织和调试代码。不论是初学者还是资深开发者，都可以在 Microi 吾码中找到提升生产力的工具">
<meta property="og:type" content="article">
<meta property="og:title" content="Microi吾码低代码平台：高效便捷的生成与管理全能助手">
<meta property="og:url" content="http://example.com/2024/12/04/Microi%E5%90%BE%E7%A0%81/%E9%AB%98%E6%95%88%E4%BE%BF%E6%8D%B7%E7%9A%84%E7%94%9F%E6%88%90%E4%B8%8E%E7%AE%A1%E7%90%86%E5%85%A8%E8%83%BD%E5%8A%A9%E6%89%8B/index.html">
<meta property="og:site_name" content="澪贰">
<meta property="og:description" content="随着技术的快速发展，编程工具不断推陈出新。Microi吾码是一款轻量级、高效的代码编辑和管理平台，旨在帮助开发者更好地编写、组织和调试代码。不论是初学者还是资深开发者，都可以在 Microi 吾码中找到提升生产力的工具">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/f3468e45138f36eace1e160f6bfb5a9.png">
<meta property="article:published_time" content="2024-12-04T09:23:15.000Z">
<meta property="article:modified_time" content="2024-12-04T09:23:15.000Z">
<meta property="article:author" content="澪贰">
<meta property="article:tag" content="开源">
<meta property="article:tag" content="低代码">
<meta property="article:tag" content="vue">
<meta property="article:tag" content="C#">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/f3468e45138f36eace1e160f6bfb5a9.png"><script type="application/ld+json">{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "Microi吾码低代码平台：高效便捷的生成与管理全能助手",
  "url": "http://example.com/2024/12/04/Microi%E5%90%BE%E7%A0%81/%E9%AB%98%E6%95%88%E4%BE%BF%E6%8D%B7%E7%9A%84%E7%94%9F%E6%88%90%E4%B8%8E%E7%AE%A1%E7%90%86%E5%85%A8%E8%83%BD%E5%8A%A9%E6%89%8B/",
  "image": "https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/f3468e45138f36eace1e160f6bfb5a9.png",
  "datePublished": "2024-12-04T09:23:15.000Z",
  "dateModified": "2024-12-04T09:23:15.000Z",
  "author": [
    {
      "@type": "Person",
      "name": "澪贰",
      "url": "http://example.com/"
    }
  ]
}</script><link rel="shortcut icon" href="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/cat_icon.ico"><link rel="canonical" href="http://example.com/2024/12/04/Microi%E5%90%BE%E7%A0%81/%E9%AB%98%E6%95%88%E4%BE%BF%E6%8D%B7%E7%9A%84%E7%94%9F%E6%88%90%E4%B8%8E%E7%AE%A1%E7%90%86%E5%85%A8%E8%83%BD%E5%8A%A9%E6%89%8B/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><script>
    (() => {
      
    const saveToLocal = {
      set: (key, value, ttl) => {
        if (!ttl) return
        const expiry = Date.now() + ttl * 86400000
        localStorage.setItem(key, JSON.stringify({ value, expiry }))
      },
      get: key => {
        const itemStr = localStorage.getItem(key)
        if (!itemStr) return undefined
        const { value, expiry } = JSON.parse(itemStr)
        if (Date.now() > expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return value
      }
    }

    window.btf = {
      saveToLocal,
      getScript: (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        Object.entries(attr).forEach(([key, val]) => script.setAttribute(key, val))
        script.onload = script.onreadystatechange = () => {
          if (!script.readyState || /loaded|complete/.test(script.readyState)) resolve()
        }
        script.onerror = reject
        document.head.appendChild(script)
      }),
      getCSS: (url, id) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onload = link.onreadystatechange = () => {
          if (!link.readyState || /loaded|complete/.test(link.readyState)) resolve()
        }
        link.onerror = reject
        document.head.appendChild(link)
      }),
      addGlobalFn: (key, fn, name = false, parent = window) => {
        if (!true && key.startsWith('pjax')) return
        const globalFn = parent.globalFn || {}
        globalFn[key] = globalFn[key] || {}
        globalFn[key][name || Object.keys(globalFn[key]).length] = fn
        parent.globalFn = globalFn
      }
    }
  
      
      const activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      const activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', 'ffffff')
        }
      }

      btf.activateDarkMode = activateDarkMode
      btf.activateLightMode = activateLightMode

      const theme = saveToLocal.get('theme')
    
          const hour = new Date().getHours()
          const isNight = hour <= 6 || hour >= 18
          if (theme === undefined) isNight ? activateDarkMode() : activateLightMode()
          else theme === 'light' ? activateLightMode() : activateDarkMode()
        
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        document.documentElement.classList.toggle('hide-aside', asideStatus === 'hide')
      }
    
      
    const detectApple = () => {
      if (/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)) {
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
  
    })()
  </script><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":true,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"未找到符合您查询的内容：${query}","hits_stats":"共找到 ${hits} 篇文章"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":230,"highlightFullpage":false,"highlightMacStyle":false},
  copy: {
    success: '复制成功',
    error: '复制失败',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: true,
    post: true
  },
  runtime: '天',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: {"limitCount":150,"languages":{"author":"作者: 澪贰","link":"链接: ","source":"来源: 澪贰","info":"著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。"}},
  lightbox: 'medium_zoom',
  Snackbar: {"chs_to_cht":"已切换为繁体中文","cht_to_chs":"已切换为简体中文","day_to_night":"已切换为深色模式","night_to_day":"已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"top-right"},
  infinitegrid: {
    js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid/dist/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyloadPlugin: true,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Microi吾码低代码平台：高效便捷的生成与管理全能助手',
  isHighlightShrink: false,
  isToc: true,
  pageType: 'post'
}</script><link rel="stylesheet" href="/css/custom.css" media="defer" onload="this.media='all'"><script src="https://npm.elemecdn.com/echarts@4.9.0/dist/echarts.min.js"></script><!-- hexo injector head_end start --><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Zfour/Butterfly-double-row-display@1.00/cardlistpost.min.css"/>
<style>#recent-posts > .recent-post-item >.recent-post-info > .article-meta-wrap > .tags:before {content:"\A";
  white-space: pre;}#recent-posts > .recent-post-item >.recent-post-info > .article-meta-wrap > .tags > .article-meta__separator{display:none}</style>
<link rel="stylesheet" href="https://npm.elemecdn.com/hexo-butterfly-categories-card@1.0.0/lib/categorybar.css"><link rel="stylesheet" href="https://unpkg.zhimg.com/hexo-butterfly-footer-beautify@1.0.0/lib/runtime.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiper.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiperstyle.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://npm.elemecdn.com/hexo-filter-gitcalendar/lib/gitcalendar.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://npm.elemecdn.com/hexo-butterfly-wowjs/lib/animate.min.css" media="print" onload="this.media='screen'"><!-- hexo injector head_end end --><meta name="generator" content="Hexo 7.3.0"></head><body><div id="web_bg" style="background-image: url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/water02.jpg);"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img text-center"><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/zero_two.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data text-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">96</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">74</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home-lg"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fas fa-list"></i><span> 列表</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/comments/"><i class="fa-fw fas fa-envelope-open"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/f3468e45138f36eace1e160f6bfb5a9.png);"><nav id="nav"><span id="blog-info"><a class="nav-site-title" href="/"><span class="site-name">澪贰</span></a><a class="nav-page-title" href="/"><span class="site-name">Microi吾码低代码平台：高效便捷的生成与管理全能助手</span></a></span><div id="menus"><div id="search-button"><span class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></span></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home-lg"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><span class="site-page group hide"><i class="fa-fw fas fa-list"></i><span> 列表</span><i class="fas fa-chevron-down"></i></span><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/comments/"><i class="fa-fw fas fa-envelope-open"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><span class="site-page"><i class="fas fa-bars fa-fw"></i></span></div></div></nav><div id="post-info"><h1 class="post-title">Microi吾码低代码平台：高效便捷的生成与管理全能助手</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-12-04T09:23:15.000Z" title="发表于 2024-12-04 17:23:15">2024-12-04</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-12-04T09:23:15.000Z" title="更新于 2024-12-04 17:23:15">2024-12-04</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/Microi%E5%90%BE%E7%A0%81/">Microi吾码</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">总字数:</span><span class="word-count">4030</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>18分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title=""><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">浏览量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="container post-content" id="article-container"><div id="post-outdate-notice" data="{&quot;limitDay&quot;:365,&quot;messagePrev&quot;:&quot;It has been&quot;,&quot;messageNext&quot;:&quot;days since the last update, the content of the article may be outdated.&quot;,&quot;postUpdate&quot;:&quot;2024-12-04 17:23:15&quot;}" hidden></div><h1 id="什么是-Microi-吾码？"><a href="#什么是-Microi-吾码？" class="headerlink" title="什么是 Microi 吾码？"></a>什么是 Microi 吾码？</h1><p><code>Microi 吾码</code>是一个专为开发者设计的代码编辑平台，专注于提升开发者的编码效率和工作体验。它以<code>简洁的设计</code>和<code>强大的功能</code>著称，为开发者提供了一个<code>高效、灵活且高度可定制</code>的编程环境</p>
<p><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/7e97d64deb694c2093b2a3ec9274b553.jpeg" alt="在这里插入图片描述"></p>
<h2 id="核心理念"><a href="#核心理念" class="headerlink" title="核心理念"></a>核心理念</h2><blockquote>
<p>Microi 吾码的设计初衷是平衡轻量与强大，让用户<code>无需庞大的集成开发环境（IDE）</code>，也能享受到快速、流畅的编码体验。它适用于从日常脚本编写到大型项目开发的各种场景</p>
</blockquote>
<h2 id="功能亮点"><a href="#功能亮点" class="headerlink" title="功能亮点"></a>功能亮点</h2><p><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/6dfa2ccbe0e5405e9d61aa359b9b6224.png" alt="在这里插入图片描述"></p>
<p>🚩<strong>多语言支持</strong></p>
<p>• Microi 吾码<code>支持多种主流编程语言</code>，如 Python、Java、JavaScript、C++、Go、Ruby 等<br>• 提供语法高亮、代码补全、错误提示、重构等实用功能，帮助开发者更高效地编写代码</p>
<p>🚩<strong>轻量级但功能全面</strong></p>
<p>• Microi 吾码<code>启动速度快</code>，<code>占用内存少</code>，但提供了类似 IDE 的功能，如调试工具、终端集成、任务管理等<br>• 特别<code>适合需要在性能有限的设备</code>上编程的用户</p>
<p>🚩<strong>插件生态系统</strong></p>
<p>• Microi 吾码<code>内置插件市场</code>，用户可以按需安装插件，扩展功能，比如代码片段管理器、Git 版本控制、数据库工具等<br>• 开发者还能根据需求<code>自行开发插件</code></p>
<p>🚩<strong>多平台支持</strong></p>
<p>• 无论是 <code>Windows</code>、<code>macOS</code> 还是 <code>Linux</code>，Microi 吾码都提供了<code>全面优化的安装包</code>，用户可随时<code>跨平台</code>工作</p>
<p>🚩<strong>高可定制性</strong></p>
<p>• 支持修改界面主题、图标风格、代码字体、行号显示等细节<br>• 用户可以通过<code>配置文件</code>进一步调整编辑器行为，如键绑定、扩展功能</p>
<p>🚩<strong>团队协作</strong></p>
<p>• 内置对 <code>Git</code> 等版本控制工具的支持，便于团队协作开发<br>• 提供<code>实时共享</code>功能，支持<code>多用户协作</code>编辑代码（需插件支持）</p>
<p>🚩<strong>内置调试工具</strong></p>
<p>• 支持对多种语言的<code>断点调试</code>和<code>运行日志查看</code>，开发者可以快速定位代码问题</p>
<h1 id="为什么选择-Microi-吾码？"><a href="#为什么选择-Microi-吾码？" class="headerlink" title="为什么选择 Microi 吾码？"></a>为什么选择 Microi 吾码？</h1><p>🔥轻量但强大<br>🔥快速上手<br>🔥灵活扩展<br>🔥高效生产力</p>
<h2 id="适用人群广"><a href="#适用人群广" class="headerlink" title="适用人群广"></a>适用人群广</h2><p><strong>初学者</strong></p>
<p>简单直观的界面和丰富的功能，使初学者可以专注于学习编程，而<code>无需应对复杂的开发环境 </code></p>
<p><strong>自由职业者</strong></p>
<p>轻量化设计和强大插件功能，让自由职业者能够<code>高效管理不同项目</code></p>
<p><strong>资深开发者</strong></p>
<p><code>丰富的调试工具、强大的代码分析功能以及高度可定制性</code>，非常适合有较高要求的资深开发者</p>
<p><strong>跨平台用户</strong></p>
<p>对需要在<code>多种操作系统之间切换</code>的用户来说，Microi 吾码的多平台支持非常便利</p>
<h2 id="2-2-编译工具比较"><a href="#2-2-编译工具比较" class="headerlink" title="2.2 编译工具比较"></a>2.2 编译工具比较</h2><p><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/eb489040cb5f4a64a924ae6a77bd71a5.png" alt="在这里插入图片描述"><br>从这张对比表可以看出，Microi 吾码在<code>轻量性</code>、<code>启动速度</code>和<code>插件丰富度</code>上具有<code>明显的优势</code>，是许多开发者的理想选择</p>
<h1 id="Microi-吾码的安装使用教程"><a href="#Microi-吾码的安装使用教程" class="headerlink" title="Microi 吾码的安装使用教程"></a>Microi 吾码的安装使用教程</h1><h2 id="方法一"><a href="#方法一" class="headerlink" title="方法一"></a>方法一</h2><h3 id="下载-Microi-吾码"><a href="#下载-Microi-吾码" class="headerlink" title="下载 Microi 吾码"></a>下载 Microi 吾码</h3><ol>
<li><p>打开 <code>Microi 吾码官网</code></p>
</li>
<li><p>根据你的操作系统选择适配的安装包：<br> • <code>Windows</code> 用户：下载 <code>.exe</code> 文件<br> • <code>macOS</code> 用户：下载 <code>.dmg</code> 文件<br> • <code>Linux</code> 用户：下载 <code>.tar.gz</code> 文件</p>
</li>
</ol>
<h3 id="安装-Microi-吾码"><a href="#安装-Microi-吾码" class="headerlink" title="安装 Microi 吾码"></a>安装 Microi 吾码</h3><p><strong>Windows</strong></p>
<blockquote>
<p>双击下载的 <code>.exe</code> 文件<br> 按照安装向导的提示，<code>选择安装路径</code><br>  点击<code>“下一步”</code>完成安装</p>
</blockquote>
<p><strong>macOS</strong></p>
<blockquote>
<p>打开下载的 <code>.dmg</code> 文件<br>将 Microi 吾码的图标拖拽到<code>“应用程序”</code>文件夹中<br>打开“应用程序”，点击 <code>Microi 吾码</code>启动</p>
</blockquote>
<p><strong>Linux</strong></p>
<ol>
<li>解压下载的 <code>.tar.gz</code> 文件：</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">tar -xvzf microi.tar.gz</span><br></pre></td></tr></table></figure>
<ol start="2">
<li>进入解压后的文件夹：</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> microi</span><br></pre></td></tr></table></figure>
<ol start="3">
<li>运行安装脚本：</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> ./install.sh</span><br></pre></td></tr></table></figure>
<h3 id="启动和配置"><a href="#启动和配置" class="headerlink" title="启动和配置"></a>启动和配置</h3><ol>
<li>启动 <code>Microi 吾码</code>，进入主界面</li>
<li>按需<code>安装插件</code>：点击“扩展”图标，搜索并安装需要的插件</li>
<li>自定义主题：进入<code>“设置”</code>，选择<code>“外观”</code>，挑选你喜欢的编辑器主题</li>
</ol>
<h2 id="方法二"><a href="#方法二" class="headerlink" title="方法二"></a>方法二</h2><p><img src= "" data-lazy-src="https://i-blog.csdnimg.cn/direct/bf124bb89b954ebfa2c523d50b0cb799.png" alt="在这里插入图片描述"></p>
<p>⌨️<strong>CentOS7一键安装脚本</strong></p>
<blockquote>
<p>url&#x3D;<a target="_blank" rel="noopener" href="https://static.itdos.com/install/install-microi-centos.sh;if">https://static.itdos.com/install/install-microi-centos.sh;if</a> [ -f &#x2F;usr&#x2F;bin&#x2F;curl ];then curl -sSO $url;else wget -O install-microi-centos.sh $url;fi;bash install-microi-centos.sh</p>
</blockquote>
<p><strong>注意事项</strong>：</p>
<blockquote>
<p>• 执行上面脚本时，会提示<code>【输入 g 以公网IP安装，输入 n 以内网IP安装】</code>，请根据实际情况输入<code>g</code>或<code>n</code><br>• 如果服务器<code>没有docker环境</code>，也会提示是否按y安装，虽然博主建议使用1Panel、宝塔之类的面板工具来管理服务器并安装<code>docker</code>，但如果您想快速开始就直接<code>键入y</code>吧<br>• 安装成功后，必需开放<code>microi-api</code>端口、前端传统界面端口、前端<code>Web</code>操作系统端口、<code>MinIO</code>端口<br>• 脚本安装<code>mysql</code>默认为4G内存服务器的性能配置，2G内存服务器<code>建议下载脚本去掉性能配置再运行脚本</code><br>• 重复执行一键脚本前会提示先删除所有已安装容器，这将导致所有数据丢失</p>
</blockquote>
<p><strong>安装docker</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker ps -a --format <span class="string">&quot;&#123;&#123;.Names&#125;&#125;&quot;</span> | grep <span class="string">&quot;^microi-install-&quot;</span> | xargs -r docker <span class="built_in">rm</span> -f</span><br></pre></td></tr></table></figure>
<p><strong>脚本代码</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#!/bin/bash</span></span><br><span class="line"></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：当前一键脚本版本：2024-11-24 11:47&#x27;</span></span><br><span class="line"><span class="comment"># 获取局域网IP</span></span><br><span class="line">LAN_IP=$(hostname -I | awk <span class="string">&#x27;&#123;print $1&#125;&#x27;</span>)</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：获取局域网IP: &#x27;</span><span class="variable">$LAN_IP</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 获取公网IP</span></span><br><span class="line">PUBLIC_IP=$(curl -s ifconfig.me)</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：获取公网IP: &#x27;</span><span class="variable">$PUBLIC_IP</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 询问用户安装类型</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：您是想在公网访问系统还是内网访问？公网请提前做好端口开放。&#x27;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：输入 g 以公网IP安装，输入 n 以内网IP安装：&#x27;</span></span><br><span class="line"><span class="built_in">read</span> -r install_type</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> [ <span class="string">&quot;<span class="variable">$install_type</span>&quot;</span> == <span class="string">&quot;g&quot;</span> ]; <span class="keyword">then</span></span><br><span class="line">  ACCESS_IP=<span class="variable">$PUBLIC_IP</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：将以公网IP安装。&#x27;</span></span><br><span class="line"><span class="keyword">elif</span> [ <span class="string">&quot;<span class="variable">$install_type</span>&quot;</span> == <span class="string">&quot;n&quot;</span> ]; <span class="keyword">then</span></span><br><span class="line">  ACCESS_IP=<span class="variable">$LAN_IP</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：将以内网IP安装。&#x27;</span></span><br><span class="line"><span class="keyword">else</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：无效的输入，脚本退出。&#x27;</span></span><br><span class="line">  <span class="built_in">exit</span> 1</span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 检查Docker是否安装</span></span><br><span class="line"><span class="keyword">if</span> ! [ -x <span class="string">&quot;<span class="subst">$(command -v docker)</span>&quot;</span> ]; <span class="keyword">then</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：您未安装docker，推荐使用1Panel、宝塔等面板工具来安装docker并管理您的服务器！&#x27;</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：是否立即安装Docker？(y/n)&#x27;</span></span><br><span class="line">  <span class="built_in">read</span> -r answer</span><br><span class="line">  <span class="keyword">if</span> [ <span class="string">&quot;<span class="variable">$answer</span>&quot;</span> != <span class="string">&quot;y&quot;</span> ]; <span class="keyword">then</span></span><br><span class="line">    <span class="built_in">echo</span> <span class="string">&#x27;Microi：安装取消，脚本退出。&#x27;</span></span><br><span class="line">    <span class="built_in">exit</span> 1</span><br><span class="line">  <span class="keyword">fi</span></span><br><span class="line"></span><br><span class="line">  <span class="comment"># 安装Docker</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：开始安装Docker...&#x27;</span></span><br><span class="line">  <span class="built_in">sudo</span> yum update -y</span><br><span class="line">  <span class="built_in">sudo</span> yum install -y yum-utils</span><br><span class="line">  <span class="built_in">sudo</span> yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo</span><br><span class="line">  <span class="built_in">sudo</span> yum install -y docker-ce docker-ce-cli containerd.io</span><br><span class="line">  <span class="built_in">sudo</span> systemctl start docker</span><br><span class="line">  <span class="built_in">sudo</span> systemctl <span class="built_in">enable</span> docker</span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：Docker已成功安装。&#x27;</span></span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 配置Docker镜像加速器（现在太难找了，如果报错timeout就去阿里云申请一个自己私有的加速地址）</span></span><br><span class="line">DOCKER_ACCELERATOR=<span class="string">&quot;https://mirrors.aliyun.com/docker-ce/&quot;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：配置Docker镜像加速器&#x27;</span></span><br><span class="line"><span class="built_in">sudo</span> <span class="built_in">tee</span> /etc/docker/daemon.json &lt;&lt;<span class="string">EOF</span></span><br><span class="line"><span class="string">&#123;</span></span><br><span class="line"><span class="string">  &quot;registry-mirrors&quot;: [&quot;$&#123;DOCKER_ACCELERATOR&#125;&quot;]</span></span><br><span class="line"><span class="string">&#125;</span></span><br><span class="line"><span class="string">EOF</span></span><br><span class="line"><span class="built_in">sudo</span> systemctl daemon-reload</span><br><span class="line"><span class="built_in">sudo</span> systemctl restart docker</span><br><span class="line"></span><br><span class="line"><span class="comment"># 生成随机端口和密码函数</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：生成随机端口和密码函数&#x27;</span></span><br><span class="line"><span class="function"><span class="title">generate_random_port</span></span>() &#123;</span><br><span class="line">  <span class="built_in">shuf</span> -i 17777-65535 -n 1</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="title">generate_random_password</span></span>() &#123;</span><br><span class="line">  openssl rand -<span class="built_in">base64</span> 12 | <span class="built_in">tr</span> -dc <span class="string">&#x27;A-Za-z0-9&#x27;</span> | <span class="built_in">head</span> -c16</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment"># 生成随机数据目录</span></span><br><span class="line"><span class="function"><span class="title">generate_random_data_dir</span></span>() &#123;</span><br><span class="line">  <span class="built_in">local</span> container_name=<span class="string">&quot;<span class="variable">$1</span>&quot;</span></span><br><span class="line">  <span class="built_in">local</span> <span class="built_in">dir</span>=<span class="string">&quot;/home/data-<span class="variable">$&#123;container_name&#125;</span>-<span class="subst">$(openssl rand -hex 4)</span>&quot;</span></span><br><span class="line">  <span class="built_in">mkdir</span> -p <span class="string">&quot;<span class="variable">$&#123;dir&#125;</span>&quot;</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&quot;<span class="variable">$&#123;dir&#125;</span>&quot;</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment"># 检查并提示用户手动删除已有容器</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：检查并提示用户手动删除已有容器&#x27;</span></span><br><span class="line"><span class="keyword">if</span> docker ps -a --format <span class="string">&#x27;&#123;&#123;.Names&#125;&#125;&#x27;</span> | grep -q <span class="string">&#x27;^microi-install-&#x27;</span>; <span class="keyword">then</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：脚本重复运行前，需要先通过命令【docker ps -a --format &quot;&#123;&#123;.Names&#125;&#125;&quot; | grep &quot;^microi-install-&quot; | xargs -r docker rm -f】删除所有相关容器后再重新运行，注意此操作将会删除数据库、MinIO文件，请谨慎操作&#x27;</span></span><br><span class="line">  <span class="built_in">exit</span> 1</span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 检查并安装unzip</span></span><br><span class="line"><span class="keyword">if</span> ! [ -x <span class="string">&quot;<span class="subst">$(command -v unzip)</span>&quot;</span> ]; <span class="keyword">then</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：您未安装unzip，正在为您安装...&#x27;</span></span><br><span class="line">  <span class="built_in">sudo</span> yum install -y unzip</span><br><span class="line">  <span class="keyword">if</span> [ $? -ne 0 ]; <span class="keyword">then</span></span><br><span class="line">    <span class="built_in">echo</span> <span class="string">&#x27;Microi：unzip安装失败，脚本退出。&#x27;</span></span><br><span class="line">    <span class="built_in">exit</span> 1</span><br><span class="line">  <span class="keyword">fi</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：unzip已成功安装。&#x27;</span></span><br><span class="line"><span class="keyword">else</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：unzip已安装。&#x27;</span></span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 创建 MySQL 配置文件</span></span><br><span class="line">MYSQL_CONF_FILE=<span class="string">&quot;/tmp/my_microi.cnf&quot;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;[mysqld]&#x27;</span> &gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;lower_case_table_names = 1&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;max_connections = 500&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;key_buffer_size = 268435456&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;query_cache_size = 268435456&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;tmp_table_size = 268435456&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;innodb_buffer_pool_size = 536870912&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;innodb_log_buffer_size = 268435456&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;sort_buffer_size = 1048576&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;read_buffer_size = 2097152&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;read_rnd_buffer_size = 1048576&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;join_buffer_size = 2097152&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;thread_stack = 393216&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;binlog_cache_size = 196608&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;thread_cache_size = 192&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;table_open_cache = 1024&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;character_set_server=utf8mb4&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;collation_server=utf8mb4_unicode_ci&#x27;</span> &gt;&gt; <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 安装MySQL 5.6</span></span><br><span class="line">MYSQL_PORT=$(generate_random_port)</span><br><span class="line">MYSQL_ROOT_PASSWORD=$(generate_random_password)</span><br><span class="line">MYSQL_DATA_DIR=$(generate_random_data_dir <span class="string">&quot;mysql&quot;</span>)</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：MySQL 将在端口 &#x27;</span><span class="variable">$&#123;MYSQL_PORT&#125;</span><span class="string">&#x27; 上安装，root 密码: &#x27;</span><span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span>，数据目录: <span class="variable">$&#123;MYSQL_DATA_DIR&#125;</span></span><br><span class="line">docker pull registry.cn-hangzhou.aliyuncs.com/microios/mysql5.6:latest</span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name microi-install-mysql56 -p <span class="variable">$&#123;MYSQL_PORT&#125;</span>:3306 \</span><br><span class="line">  -v <span class="variable">$&#123;MYSQL_DATA_DIR&#125;</span>:/var/lib/mysql \</span><br><span class="line">  -v <span class="variable">$&#123;MYSQL_CONF_FILE&#125;</span>:/etc/mysql/conf.d/my_microi.cnf \</span><br><span class="line">  -e MYSQL_ROOT_PASSWORD=<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span> \</span><br><span class="line">  -e MYSQL_TIME_ZONE=Asia/Shanghai \</span><br><span class="line">  -d registry.cn-hangzhou.aliyuncs.com/microios/mysql5.6:latest</span><br><span class="line"></span><br><span class="line"><span class="comment"># 安装Redis 6.2</span></span><br><span class="line">REDIS_PORT=$(generate_random_port)</span><br><span class="line">REDIS_PASSWORD=$(generate_random_password)</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：Redis 将在端口 &#x27;</span><span class="variable">$&#123;REDIS_PORT&#125;</span><span class="string">&#x27; 上安装，密码: &#x27;</span><span class="variable">$&#123;REDIS_PASSWORD&#125;</span></span><br><span class="line">docker pull registry.cn-hangzhou.aliyuncs.com/microios/redis6.2:latest</span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name microi-install-redis -p <span class="variable">$&#123;REDIS_PORT&#125;</span>:6379 \</span><br><span class="line">  -e REDIS_PASSWORD=<span class="variable">$&#123;REDIS_PASSWORD&#125;</span> \</span><br><span class="line">  -d registry.cn-hangzhou.aliyuncs.com/microios/redis6.2:latest redis-server --requirepass <span class="variable">$&#123;REDIS_PASSWORD&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 等待MySQL容器启动</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：等待MySQL容器启动...&#x27;</span></span><br><span class="line"><span class="built_in">sleep</span> 5 <span class="comment"># 等待5秒，可根据实际情况调整</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 检查MySQL是否可以连接</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：检查MySQL是否可以连接...&#x27;</span></span><br><span class="line"><span class="keyword">for</span> i <span class="keyword">in</span> &#123;1..10&#125;; <span class="keyword">do</span></span><br><span class="line">  docker <span class="built_in">exec</span> -i microi-install-mysql56 mysql -uroot -p<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span> -e <span class="string">&quot;SELECT 1&quot;</span> &gt; /dev/null 2&gt;&amp;1 &amp;&amp; <span class="built_in">break</span></span><br><span class="line">  <span class="built_in">sleep</span> 1</span><br><span class="line"><span class="keyword">done</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 如果MySQL服务启动失败，则退出脚本</span></span><br><span class="line"><span class="keyword">if</span> [ <span class="variable">$i</span> -eq 60 ]; <span class="keyword">then</span></span><br><span class="line">  <span class="built_in">echo</span> <span class="string">&#x27;Microi：MySQL服务启动失败，脚本退出。&#x27;</span></span><br><span class="line">  <span class="built_in">exit</span> 1</span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 允许root用户从任意主机连接</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：允许root用户从任意主机连接&#x27;</span></span><br><span class="line">docker <span class="built_in">exec</span> -i microi-install-mysql56 mysql -uroot -p<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span> -e <span class="string">&quot;USE mysql; GRANT ALL PRIVILEGES ON *.* TO &#x27;root&#x27;@&#x27;%&#x27; IDENTIFIED BY &#x27;<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span>&#x27; WITH GRANT OPTION;&quot;</span></span><br><span class="line">docker <span class="built_in">exec</span> -i microi-install-mysql56 mysql -uroot -p<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span> -e <span class="string">&quot;FLUSH PRIVILEGES;&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 下载并解压MySQL数据库备份</span></span><br><span class="line">SQL_ZIP_URL=<span class="string">&quot;https://static.itdos.com/download/microi/file/mysql5.6.50-bak-latest.sql.zip&quot;</span></span><br><span class="line">SQL_ZIP_FILE=<span class="string">&quot;/tmp/mysql_backup.zip&quot;</span></span><br><span class="line">SQL_DIR=<span class="string">&quot;/tmp/mysql_backup&quot;</span></span><br><span class="line">SQL_FILE=<span class="string">&quot;<span class="variable">$&#123;SQL_DIR&#125;</span>/microi_demo.sql&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 创建目录</span></span><br><span class="line"><span class="built_in">mkdir</span> -p <span class="variable">$&#123;SQL_DIR&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：创建目录: &#x27;</span><span class="variable">$&#123;SQL_DIR&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 下载ZIP文件</span></span><br><span class="line">curl -o <span class="variable">$&#123;SQL_ZIP_FILE&#125;</span> <span class="variable">$&#123;SQL_ZIP_URL&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：下载ZIP文件: &#x27;</span><span class="variable">$&#123;SQL_ZIP_FILE&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 解压ZIP文件并覆盖现有文件</span></span><br><span class="line">unzip -o -d <span class="variable">$&#123;SQL_DIR&#125;</span> <span class="variable">$&#123;SQL_ZIP_FILE&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：解压ZIP文件到: &#x27;</span><span class="variable">$&#123;SQL_DIR&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 创建数据库</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：创建数据库 microi_demo&#x27;</span></span><br><span class="line">docker <span class="built_in">exec</span> -i microi-install-mysql56 mysql -uroot -p<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span> -e <span class="string">&quot;CREATE DATABASE IF NOT EXISTS microi_demo CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 还原MySQL数据库备份</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：还原MySQL数据库备份: &#x27;</span><span class="variable">$&#123;SQL_FILE&#125;</span></span><br><span class="line">docker <span class="built_in">exec</span> -i microi-install-mysql56 mysql -uroot -p<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span> microi_demo &lt; <span class="variable">$&#123;SQL_FILE&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 安装MongoDB</span></span><br><span class="line">MONGO_PORT=$(generate_random_port)</span><br><span class="line">MONGO_ROOT_PASSWORD=$(generate_random_password)</span><br><span class="line">MONGO_DATA_DIR=$(generate_random_data_dir <span class="string">&quot;mongodb&quot;</span>)</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：MongoDB 将在端口 &#x27;</span><span class="variable">$&#123;MONGO_PORT&#125;</span><span class="string">&#x27; 上安装，root 密码: &#x27;</span><span class="variable">$&#123;MONGO_ROOT_PASSWORD&#125;</span>，数据目录: <span class="variable">$&#123;MONGO_DATA_DIR&#125;</span></span><br><span class="line">docker pull registry.cn-hangzhou.aliyuncs.com/microios/mongo:latest</span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name microi-install-mongodb -p <span class="variable">$&#123;MONGO_PORT&#125;</span>:27017 \</span><br><span class="line">  -v <span class="variable">$&#123;MONGO_DATA_DIR&#125;</span>:/data/db \</span><br><span class="line">  -e MONGO_INITDB_ROOT_USERNAME=root \</span><br><span class="line">  -e MONGO_INITDB_ROOT_PASSWORD=<span class="variable">$&#123;MONGO_ROOT_PASSWORD&#125;</span> \</span><br><span class="line">  -d registry.cn-hangzhou.aliyuncs.com/microios/mongo:latest</span><br><span class="line"></span><br><span class="line"><span class="comment"># 安装MinIO</span></span><br><span class="line">MINIO_PORT=$(generate_random_port)</span><br><span class="line">MINIO_CONSOLE_PORT=$(generate_random_port)</span><br><span class="line">MINIO_ACCESS_KEY=$(generate_random_password)</span><br><span class="line">MINIO_SECRET_KEY=$(generate_random_password)</span><br><span class="line">MINIO_DATA_DIR=$(generate_random_data_dir <span class="string">&quot;minio&quot;</span>)</span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：MinIO 将在端口 &#x27;</span><span class="variable">$&#123;MINIO_PORT&#125;</span><span class="string">&#x27; 和控制台端口 &#x27;</span><span class="variable">$&#123;MINIO_CONSOLE_PORT&#125;</span><span class="string">&#x27; 上安装，access key: &#x27;</span><span class="variable">$&#123;MINIO_ACCESS_KEY&#125;</span><span class="string">&#x27;，secret key: &#x27;</span><span class="variable">$&#123;MINIO_SECRET_KEY&#125;</span>，数据目录: <span class="variable">$&#123;MINIO_DATA_DIR&#125;</span></span><br><span class="line">docker pull registry.cn-hangzhou.aliyuncs.com/microios/minio:latest</span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name microi-install-minio -p <span class="variable">$&#123;MINIO_PORT&#125;</span>:9000 -p <span class="variable">$&#123;MINIO_CONSOLE_PORT&#125;</span>:9001 \</span><br><span class="line">  -v <span class="variable">$&#123;MINIO_DATA_DIR&#125;</span>:/data \</span><br><span class="line">  -v <span class="variable">$&#123;MINIO_DATA_DIR&#125;</span>/config:/root/.minio \</span><br><span class="line">  -e <span class="string">&quot;MINIO_ROOT_USER=<span class="variable">$&#123;MINIO_ACCESS_KEY&#125;</span>&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;MINIO_ROOT_PASSWORD=<span class="variable">$&#123;MINIO_SECRET_KEY&#125;</span>&quot;</span> \</span><br><span class="line">  -d registry.cn-hangzhou.aliyuncs.com/microios/minio:latest server /data --console-address <span class="string">&quot;:9001&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 拉取并安装后端microi-api接口系统</span></span><br><span class="line">API_PORT=$(generate_random_port)</span><br><span class="line">API_IMAGE=<span class="string">&quot;registry.cn-hangzhou.aliyuncs.com/microios/microi-api:latest&quot;</span></span><br><span class="line">API_CONTAINER_NAME=<span class="string">&quot;microi-install-api&quot;</span></span><br><span class="line">OS_CLIENT_DB_CONN=<span class="string">&quot;Data Source=<span class="variable">$&#123;LAN_IP&#125;</span>;Database=microi_demo;User Id=root;Password=<span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span>;Port=<span class="variable">$&#123;MYSQL_PORT&#125;</span>;Convert Zero Datetime=True;Allow Zero Datetime=True;Charset=utf8mb4;Max Pool Size=500;sslmode=None;&quot;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：拉取并安装后端microi-api接口系统: &#x27;</span><span class="variable">$&#123;API_IMAGE&#125;</span></span><br><span class="line">docker pull <span class="variable">$&#123;API_IMAGE&#125;</span></span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name <span class="variable">$&#123;API_CONTAINER_NAME&#125;</span> -p <span class="variable">$&#123;API_PORT&#125;</span>:80 \</span><br><span class="line">  -e <span class="string">&quot;OsClient=iTdos&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;OsClientType=Product&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;OsClientNetwork=Internal&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;OsClientDbConn=<span class="variable">$&#123;OS_CLIENT_DB_CONN&#125;</span>&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;OsClientRedisHost=<span class="variable">$&#123;LAN_IP&#125;</span>&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;OsClientRedisPort=<span class="variable">$&#123;REDIS_PORT&#125;</span>&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;OsClientRedisPwd=<span class="variable">$&#123;REDIS_PASSWORD&#125;</span>&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;AuthServer=http://<span class="variable">$&#123;LAN_IP&#125;</span>:<span class="variable">$&#123;API_PORT&#125;</span>&quot;</span> \</span><br><span class="line">  -v /etc/localtime:/etc/localtime \</span><br><span class="line">  -v /usr/share/fonts:/usr/share/fonts \</span><br><span class="line">  -d <span class="variable">$&#123;API_IMAGE&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 拉取并安装前端传统界面</span></span><br><span class="line">VUE_PORT=$(generate_random_port)</span><br><span class="line">VUE_IMAGE=<span class="string">&quot;registry.cn-hangzhou.aliyuncs.com/microios/microi-client:latest&quot;</span></span><br><span class="line">VUE_CONTAINER_NAME=<span class="string">&quot;microi-install-client&quot;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：拉取并安装前端传统界面: &#x27;</span><span class="variable">$&#123;VUE_IMAGE&#125;</span></span><br><span class="line">docker pull <span class="variable">$&#123;VUE_IMAGE&#125;</span></span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name <span class="variable">$&#123;VUE_CONTAINER_NAME&#125;</span> -p <span class="variable">$&#123;VUE_PORT&#125;</span>:80 \</span><br><span class="line">  -e <span class="string">&quot;OsClient=iTdos&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;ApiBase=http://<span class="variable">$&#123;ACCESS_IP&#125;</span>:<span class="variable">$&#123;API_PORT&#125;</span>&quot;</span> \</span><br><span class="line">  -v /etc/localtime:/etc/localtime \</span><br><span class="line">  -v /usr/share/fonts:/usr/share/fonts \</span><br><span class="line">  -d <span class="variable">$&#123;VUE_IMAGE&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 拉取并安装前端WebOS操作系统</span></span><br><span class="line">WEBOS_PORT=$(generate_random_port)</span><br><span class="line">WEBOS_IMAGE=<span class="string">&quot;registry.cn-hangzhou.aliyuncs.com/microios/microi-os:latest&quot;</span></span><br><span class="line">WEBOS_CONTAINER_NAME=<span class="string">&quot;microi-install-os&quot;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：拉取并安装前端WebOS操作系统: &#x27;</span><span class="variable">$&#123;WEBOS_IMAGE&#125;</span></span><br><span class="line">docker pull <span class="variable">$&#123;WEBOS_IMAGE&#125;</span></span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name <span class="variable">$&#123;WEBOS_CONTAINER_NAME&#125;</span> -p <span class="variable">$&#123;WEBOS_PORT&#125;</span>:80 \</span><br><span class="line">  -e <span class="string">&quot;OsClient=iTdos&quot;</span> \</span><br><span class="line">  -e <span class="string">&quot;ApiBase=http://<span class="variable">$&#123;ACCESS_IP&#125;</span>:<span class="variable">$&#123;API_PORT&#125;</span>&quot;</span> \</span><br><span class="line">  -v /etc/localtime:/etc/localtime \</span><br><span class="line">  -v /usr/share/fonts:/usr/share/fonts \</span><br><span class="line">  -d <span class="variable">$&#123;WEBOS_IMAGE&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 安装Watchtower</span></span><br><span class="line">WATCHTOWER_CONTAINER_NAME=<span class="string">&quot;microi-install-watchtower&quot;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：安装Watchtower以自动更新API、Vue和WebOS容器&#x27;</span></span><br><span class="line">docker pull registry.cn-hangzhou.aliyuncs.com/microios/watchtower:latest</span><br><span class="line">docker run -itd --restart=always --log-opt max-size=10m --log-opt max-file=10 --privileged=<span class="literal">true</span> \</span><br><span class="line">  --name <span class="variable">$&#123;WATCHTOWER_CONTAINER_NAME&#125;</span> -v /var/run/docker.sock:/var/run/docker.sock \</span><br><span class="line">  registry.cn-hangzhou.aliyuncs.com/microios/watchtower:latest <span class="variable">$&#123;API_CONTAINER_NAME&#125;</span> <span class="variable">$&#123;VUE_CONTAINER_NAME&#125;</span> <span class="variable">$&#123;WEBOS_CONTAINER_NAME&#125;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 输出所有服务的信息</span></span><br><span class="line"><span class="built_in">echo</span> -e <span class="string">&quot;==================================================================&quot;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：所有服务已成功安装。&#x27;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：前端传统界面访问地址: http://&#x27;</span><span class="variable">$ACCESS_IP</span><span class="string">&#x27;:&#x27;</span><span class="variable">$VUE_PORT</span><span class="string">&#x27;，账号: admin，密码: demo123456&#x27;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：前端WebOS操作系统访问地址: http://&#x27;</span><span class="variable">$ACCESS_IP</span><span class="string">&#x27;:&#x27;</span><span class="variable">$WEBOS_PORT</span><span class="string">&#x27;，账号: admin，密码: demo123456&#x27;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：Redis: 容器名称 microi-install-redis, 端口 &#x27;</span><span class="variable">$&#123;REDIS_PORT&#125;</span><span class="string">&#x27;, 密码: &#x27;</span><span class="variable">$&#123;REDIS_PASSWORD&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：MySQL: 容器名称 microi-install-mysql56, 端口 &#x27;</span><span class="variable">$&#123;MYSQL_PORT&#125;</span><span class="string">&#x27;, Root 密码: &#x27;</span><span class="variable">$&#123;MYSQL_ROOT_PASSWORD&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：MongoDB: 容器名称 microi-install-mongodb, 端口 &#x27;</span><span class="variable">$&#123;MONGO_PORT&#125;</span><span class="string">&#x27;, Root 密码: &#x27;</span><span class="variable">$&#123;MONGO_ROOT_PASSWORD&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：MinIO: 容器名称 microi-install-minio, 端口 &#x27;</span><span class="variable">$&#123;MINIO_PORT&#125;</span><span class="string">&#x27;, 控制台端口 &#x27;</span><span class="variable">$&#123;MINIO_CONSOLE_PORT&#125;</span><span class="string">&#x27;, Access Key: &#x27;</span><span class="variable">$&#123;MINIO_ACCESS_KEY&#125;</span>, Secret Key: <span class="variable">$&#123;MINIO_SECRET_KEY&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：后端microi-api接口系统: 容器名称 &#x27;</span><span class="variable">$&#123;API_CONTAINER_NAME&#125;</span><span class="string">&#x27;, 端口 &#x27;</span><span class="variable">$&#123;API_PORT&#125;</span><span class="string">&#x27;, 镜像: &#x27;</span><span class="variable">$&#123;API_IMAGE&#125;</span><span class="string">&#x27;, 局域网IP: &#x27;</span><span class="variable">$&#123;LAN_IP&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：前端传统界面: 容器名称 &#x27;</span><span class="variable">$&#123;VUE_CONTAINER_NAME&#125;</span><span class="string">&#x27;, 端口 &#x27;</span><span class="variable">$&#123;VUE_PORT&#125;</span><span class="string">&#x27;, 镜像: &#x27;</span><span class="variable">$&#123;VUE_IMAGE&#125;</span><span class="string">&#x27;, API URL: http://&#x27;</span><span class="variable">$&#123;ACCESS_IP&#125;</span><span class="string">&#x27;:&#x27;</span><span class="variable">$&#123;API_PORT&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：前端WebOS操作系统: 容器名称 &#x27;</span><span class="variable">$&#123;WEBOS_CONTAINER_NAME&#125;</span><span class="string">&#x27;, 端口 &#x27;</span><span class="variable">$&#123;WEBOS_PORT&#125;</span><span class="string">&#x27;, 镜像: &#x27;</span><span class="variable">$&#123;WEBOS_IMAGE&#125;</span><span class="string">&#x27;, API URL: http://&#x27;</span><span class="variable">$&#123;ACCESS_IP&#125;</span><span class="string">&#x27;:&#x27;</span><span class="variable">$&#123;API_PORT&#125;</span></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;Microi：Watchtower: 容器名称 &#x27;</span><span class="variable">$&#123;WATCHTOWER_CONTAINER_NAME&#125;</span><span class="string">&#x27;, 已安装以自动更新API、Vue和WebOS容器&#x27;</span></span><br><span class="line"><span class="built_in">echo</span> -e <span class="string">&quot;==================================================================&quot;</span></span><br></pre></td></tr></table></figure>

<h1 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h1><p>Microi 吾码不仅是一个简单的代码编辑工具，更是一个强大的编程平台。它凭借轻量化、灵活性和强大的扩展能力，成为了越来越多开发者的首选。如果你还没有尝试过，不妨安装体验，感受编程效率的飞跃！(๑•̀ㅂ•́)و✧</p>
<h1 id="希望读者们多多三连支持"><a href="#希望读者们多多三连支持" class="headerlink" title="希望读者们多多三连支持"></a>希望读者们多多三连支持</h1><h1 id="小编会继续更新"><a href="#小编会继续更新" class="headerlink" title="小编会继续更新"></a>小编会继续更新</h1><h1 id="你们的鼓励就是我前进的动力！"><a href="#你们的鼓励就是我前进的动力！" class="headerlink" title="你们的鼓励就是我前进的动力！"></a>你们的鼓励就是我前进的动力！</h1><p><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/6eb35e0c86354201aa3550a967b0b65a.jpeg" alt="请添加图片描述"></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="http://example.com">澪贰</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="http://example.com/2024/12/04/Microi%E5%90%BE%E7%A0%81/%E9%AB%98%E6%95%88%E4%BE%BF%E6%8D%B7%E7%9A%84%E7%94%9F%E6%88%90%E4%B8%8E%E7%AE%A1%E7%90%86%E5%85%A8%E8%83%BD%E5%8A%A9%E6%89%8B/">http://example.com/2024/12/04/Microi吾码/高效便捷的生成与管理全能助手/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来源 <a href="http://example.com" target="_blank">澪贰</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E5%BC%80%E6%BA%90/">开源</a><a class="post-meta__tags" href="/tags/%E4%BD%8E%E4%BB%A3%E7%A0%81/">低代码</a><a class="post-meta__tags" href="/tags/vue/">vue</a><a class="post-meta__tags" href="/tags/C/">C#</a></div><div class="post-share"><div class="social-share" data-image="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/f3468e45138f36eace1e160f6bfb5a9.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button"><i class="fas fa-qrcode"></i>赞助</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/Wechat.png" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/Wechat.png" alt="微信"/></a><div class="post-qr-code-desc">微信</div></li><li class="reward-item"><a href="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/Alipay.png" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/Alipay.png" alt="支付宝"/></a><div class="post-qr-code-desc">支付宝</div></li></ul></div></div><nav class="pagination-post" id="pagination"><a class="pagination-related" href="/2024/12/06/CPP%E5%88%9D%E9%98%B6/%E7%B1%BB%E5%92%8C%E5%AF%B9%E8%B1%A1%EF%BC%88%E4%B8%AD%E4%B8%8A%EF%BC%89/" title="C++天使的灵动心跳代码：类和对象（中上）"><img class="cover" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/71b731c5ab1ed52a0f4a865ad0e62b1.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="info"><div class="info-1"><div class="info-item-1">上一篇</div><div class="info-item-2">C++天使的灵动心跳代码：类和对象（中上）</div></div><div class="info-2"><div class="info-item-1">类的六大默认成员函数一个类里面如果什么都没有，就被叫做空类，但是空类里并不是真的什么都没有，而是存在默认构造函数。这个默认构造函数虽然没有做任何具体的初始化操作（因为类中没有成员变量），但它满足了创建对象的基本需求  默认成员函数：用户没有显式实现，编译器会生成的成员函数称为默认成员函数   • 构造函数：主要完成初始化工作 • 析构函数：主要完成清理工作 • 拷贝构造函数：使用同类对象初始化创建对象 • 赋值运算符重载函数：将一个对象的值赋值给另一个同类型的对象 • 取地址运算符重载函数：返回对象的地址或返回const对象的地址 • const 取地址运算符重载函数：返回 const 对象在内存中的地址 构造函数 构造函数是特殊的成员函数，需要注意的是，构造函数虽然名称叫构造，但是构造函数的主要任务并不是开空间创建对象，而是初始化对象  其语法形式为： 12类名 ()...</div></div></div></a><a class="pagination-related" href="/2024/12/02/CPP%E5%88%9D%E9%98%B6/%E7%B1%BB%E5%92%8C%E5%AF%B9%E8%B1%A1%EF%BC%88%E4%B8%8A%EF%BC%89/" title="C++天使的灵动心跳代码：类和对象（上）"><img class="cover" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20241129124340.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="info text-right"><div class="info-1"><div class="info-item-1">下一篇</div><div class="info-item-2">C++天使的灵动心跳代码：类和对象（上）</div></div><div class="info-2"><div class="info-item-1">面向过程与面向对象🚩面向过程C语言所学的内容主要都是面向过程的，核心是过程（函数），将程序看作是一系列步骤的组合。它强调的是 “怎么做”，重点在于设计函数和函数之间的调用顺序来完成任务，整个过程是围绕操作步骤（函数）展开的 例如：在一个文件复制程序中，面向过程的思路是先打开源文件，然后读取源文件内容，接着打开目标文件，再将读取的内容写入目标文件，最后关闭文件 🚩面向对象核心是对象，把现实世界中的事物抽象成对象，对象包含数据（属性）和操作数据的方法。它强调的是 “有什么”，重点在于定义对象的属性和行为，通过对象之间的相互作用来完成任务 例如：对于文件复制程序，面向对象的思路是创建文件对象，这些文件对象有自己的属性（如文件名、文件路径、文件内容等）和方法（如打开、读取、写入、关闭等），通过操作这些文件对象来实现文件复制 类类的引入类是一种数据类型，在C语言中类指的是结构体，但他只能包含变量；在C++中的类能包括变量和函数，清晰对一个对象进行属性行为说明，所以类和结构体十分相似 123456789101112131415//以C语言环境struct Stack&#123;	int...</div></div></div></a></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><a class="pagination-related" href="/2024/12/11/Microi%E5%90%BE%E7%A0%81/%E5%89%8D%E7%AB%AF%E6%BA%90%E7%A0%81%E7%9A%84%E6%9C%AC%E5%9C%B0%E8%BF%90%E8%A1%8C%E6%8E%A2%E7%B4%A2/" title="Microi吾码低代码平台：前端源码的本地运行探索"><img class="cover" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/e7158f21efdf4c3b6915b2fb628be32.png" alt="cover"><div class="info text-center"><div class="info-1"><div class="info-item-1"><i class="far fa-calendar-alt fa-fw"></i> 2024-12-11</div><div class="info-item-2">Microi吾码低代码平台：前端源码的本地运行探索</div></div><div class="info-2"><div class="info-item-1"> 传送门：Microi吾码官网   前端源码运行环境要求操作系统• Windows、macOS 或 Linux 都可以作为开发环境 • 对于某些依赖特定工具链或包的项目，可能有不同的要求，但大多数前端项目都可以跨平台运行 必备软件工具在开始之前，确保本地环境中已经安装了以下工具： • Node.js 和 npm&#x2F;yarn：Node.js 是前端开发中不可或缺的环境，npm 和 yarn 是常用的包管理工具，可以从 Node.js 官网下载并安装 • 代码编辑器：如 Visual Studio Code、Sublime Text 或 WebStorm，用于编写和调试代码 • Git：用于克隆代码库和版本控制，Git 也可以从 Git 官网下载安装 项目源码依赖• 项目可能依赖于一些特定版本的库或框架，如 React、Vue、Angular 等，确保提前阅读项目文档，了解是否有其他依赖项 从Git仓库克隆前端源码 打开终端（Terminal），选择合适的工作目录  使用 git clone 命令将项目源码克隆到本地：   12git clone...</div></div></div></a></div></div><hr class="custom-hr"/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div id="twikoo-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info text-center"><div class="card-info-avatar"><div class="avatar-img"><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/zero_two.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-status-box"><div class="author-status"><g-emoji class="g-emoji" alias="palm_tree" fallback-src="https://lskypro.acozycotage.net/LightPicture/2022/12/fe1dc0402e623096.jpg">🤯</g-emoji><span>头脑风暴中</span></div></div></div><div class="author-info-name">澪贰</div><div class="author-info-description"></div><div class="site-data"><a href="/archives/"><div class="headline">文章</div><div class="length-num">96</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">74</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/ZeroCoder-Zhang"><i></i><span>🛫下一站--github</span></a><div class="card-info-social-icons"><a class="social-icon" href="https://github.com/ZeroCoder-Zhang" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:1478943685@qq.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content"><center><b>--- 主域名 ---<br><a target="_blank" rel="noopener" href="https://general.zzh-blog.club/" title="主域名链接" class="anno_content"><font color="#5ea6e5">general.zzh-blog.club</font></a></b></center><center><b>--- 推广学习交流(Wechat) ---<br><a target="_blank" rel="noopener" href="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/微信扫码加好友.png" title="微信图片" class="anno_content"><font color="#5ea6e5">zzh1478943685(备注来意)</font></a></b></center></div><div id="welcome-info"></div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E4%BB%80%E4%B9%88%E6%98%AF-Microi-%E5%90%BE%E7%A0%81%EF%BC%9F"><span class="toc-number">1.</span> <span class="toc-text">什么是 Microi 吾码？</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%A0%B8%E5%BF%83%E7%90%86%E5%BF%B5"><span class="toc-number">1.1.</span> <span class="toc-text">核心理念</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%8A%9F%E8%83%BD%E4%BA%AE%E7%82%B9"><span class="toc-number">1.2.</span> <span class="toc-text">功能亮点</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E4%B8%BA%E4%BB%80%E4%B9%88%E9%80%89%E6%8B%A9-Microi-%E5%90%BE%E7%A0%81%EF%BC%9F"><span class="toc-number">2.</span> <span class="toc-text">为什么选择 Microi 吾码？</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%80%82%E7%94%A8%E4%BA%BA%E7%BE%A4%E5%B9%BF"><span class="toc-number">2.1.</span> <span class="toc-text">适用人群广</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2-2-%E7%BC%96%E8%AF%91%E5%B7%A5%E5%85%B7%E6%AF%94%E8%BE%83"><span class="toc-number">2.2.</span> <span class="toc-text">2.2 编译工具比较</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#Microi-%E5%90%BE%E7%A0%81%E7%9A%84%E5%AE%89%E8%A3%85%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B"><span class="toc-number">3.</span> <span class="toc-text">Microi 吾码的安装使用教程</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%96%B9%E6%B3%95%E4%B8%80"><span class="toc-number">3.1.</span> <span class="toc-text">方法一</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%8B%E8%BD%BD-Microi-%E5%90%BE%E7%A0%81"><span class="toc-number">3.1.1.</span> <span class="toc-text">下载 Microi 吾码</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85-Microi-%E5%90%BE%E7%A0%81"><span class="toc-number">3.1.2.</span> <span class="toc-text">安装 Microi 吾码</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%90%AF%E5%8A%A8%E5%92%8C%E9%85%8D%E7%BD%AE"><span class="toc-number">3.1.3.</span> <span class="toc-text">启动和配置</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%96%B9%E6%B3%95%E4%BA%8C"><span class="toc-number">3.2.</span> <span class="toc-text">方法二</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%80%BB%E7%BB%93"><span class="toc-number">4.</span> <span class="toc-text">总结</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%B8%8C%E6%9C%9B%E8%AF%BB%E8%80%85%E4%BB%AC%E5%A4%9A%E5%A4%9A%E4%B8%89%E8%BF%9E%E6%94%AF%E6%8C%81"><span class="toc-number">5.</span> <span class="toc-text">希望读者们多多三连支持</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%B0%8F%E7%BC%96%E4%BC%9A%E7%BB%A7%E7%BB%AD%E6%9B%B4%E6%96%B0"><span class="toc-number">6.</span> <span class="toc-text">小编会继续更新</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E4%BD%A0%E4%BB%AC%E7%9A%84%E9%BC%93%E5%8A%B1%E5%B0%B1%E6%98%AF%E6%88%91%E5%89%8D%E8%BF%9B%E7%9A%84%E5%8A%A8%E5%8A%9B%EF%BC%81"><span class="toc-number">7.</span> <span class="toc-text">你们的鼓励就是我前进的动力！</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2025/07/28/Linux/Linux%E7%8E%AF%E5%A2%83%E5%9F%BA%E7%A1%80%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8/" title="【Linux操作系统】简学深悟启示录：Linux环境基础开发工具使用"><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250728114434.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="【Linux操作系统】简学深悟启示录：Linux环境基础开发工具使用"/></a><div class="content"><a class="title" href="/2025/07/28/Linux/Linux%E7%8E%AF%E5%A2%83%E5%9F%BA%E7%A1%80%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8/" title="【Linux操作系统】简学深悟启示录：Linux环境基础开发工具使用">【Linux操作系统】简学深悟启示录：Linux环境基础开发工具使用</a><time datetime="2025-07-28T13:41:39.000Z" title="发表于 2025-07-28 21:41:39">2025-07-28</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2025/07/14/Linux/Linux%E6%9D%83%E9%99%90/" title="【Linux操作系统】简学深悟启示录：Linux权限"><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250713233449.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="【Linux操作系统】简学深悟启示录：Linux权限"/></a><div class="content"><a class="title" href="/2025/07/14/Linux/Linux%E6%9D%83%E9%99%90/" title="【Linux操作系统】简学深悟启示录：Linux权限">【Linux操作系统】简学深悟启示录：Linux权限</a><time datetime="2025-07-13T22:00:00.000Z" title="发表于 2025-07-14 06:00:00">2025-07-14</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2025/07/07/Linux/Linux%E5%9F%BA%E6%9C%AC%E6%8C%87%E4%BB%A4/" title="【Linux操作系统】简学深悟启示录：Linux基本指令"><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250705182234.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="【Linux操作系统】简学深悟启示录：Linux基本指令"/></a><div class="content"><a class="title" href="/2025/07/07/Linux/Linux%E5%9F%BA%E6%9C%AC%E6%8C%87%E4%BB%A4/" title="【Linux操作系统】简学深悟启示录：Linux基本指令">【Linux操作系统】简学深悟启示录：Linux基本指令</a><time datetime="2025-07-07T12:31:51.000Z" title="发表于 2025-07-07 20:31:51">2025-07-07</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2025/06/23/%E5%89%8D%E7%AB%AF%E5%9F%BA%E7%A1%80/css%EF%BC%88%E4%B8%8B%EF%BC%89/" title="【前端基础】层叠宇宙的代码旅人：css（下）"><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250608235413.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="【前端基础】层叠宇宙的代码旅人：css（下）"/></a><div class="content"><a class="title" href="/2025/06/23/%E5%89%8D%E7%AB%AF%E5%9F%BA%E7%A1%80/css%EF%BC%88%E4%B8%8B%EF%BC%89/" title="【前端基础】层叠宇宙的代码旅人：css（下）">【前端基础】层叠宇宙的代码旅人：css（下）</a><time datetime="2025-06-23T07:47:50.000Z" title="发表于 2025-06-23 15:47:50">2025-06-23</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2025/06/23/%E5%89%8D%E7%AB%AF%E5%9F%BA%E7%A1%80/css%EF%BC%88%E4%B8%AD%EF%BC%89/" title="【前端基础】层叠宇宙的代码旅人：css（中）"><img src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/909e58aa338befce9e0b2e4e683d50c.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="【前端基础】层叠宇宙的代码旅人：css（中）"/></a><div class="content"><a class="title" href="/2025/06/23/%E5%89%8D%E7%AB%AF%E5%9F%BA%E7%A1%80/css%EF%BC%88%E4%B8%AD%EF%BC%89/" title="【前端基础】层叠宇宙的代码旅人：css（中）">【前端基础】层叠宇宙的代码旅人：css（中）</a><time datetime="2025-06-23T07:44:20.000Z" title="发表于 2025-06-23 15:44:20">2025-06-23</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2024 - 2025 By 澪贰</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo 7.3.0</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly 5.3.5</a></div><div class="footer_custom_text">🏃‍➡️不是遇到同行伙伴再出发，而是出发后的路上遇到志同道合的人。<p></a>&nbsp;<a target="_blank" href="https://www.jsdelivr.com/"><img src= "" data-lazy-src="https://img.shields.io/badge/CDN-jsDelivr-orange?style=flat&logo=jsDelivr" title="本站使用JsDelivr为静态资源提供CDN加速"></a> &nbsp;<a target="_blank" href="https://vercel.com/ "><img src= "" data-lazy-src="https://img.shields.io/badge/Hosted-Vervel-brightgreen?style=flat&logo=Vercel" title="本站采用双线部署，默认线路托管于Vercel"></a>&nbsp;<a target="_blank" href="https://vercel.com/ "><img src= "" data-lazy-src="https://img.shields.io/badge/Hosted-Coding-0cedbe?style=flat&logo=Codio" title="本站采用双线部署，联通线路托管于Coding"></a>&nbsp;<a target="_blank" href="https://github.com/"><img src= "" data-lazy-src="https://img.shields.io/badge/Source-Github-d021d6?style=flat&logo=GitHub" title="本站项目由Gtihub托管"></a>&nbsp;<a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img src= "" data-lazy-src="https://img.shields.io/badge/Copyright-BY--NC--SA%204.0-d42328?style=flat&logo=Claris" title="本站采用知识共享署名-非商业性使用-相同方式共享4.0国际许可协议进行许可"></a></p></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="日间和夜间模式切换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><a id="to_comment" href="#post-comment" title="前往评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"><span id="percent">0</span><span>%</span></i></button><button id="go-down" type="button" title="直达底部" onclick="btf.scrollToDest(document.body.scrollHeight, 500)"><i class="fas fa-arrow-down"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/medium-zoom/dist/medium-zoom.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><div class="js-pjax"><script>(() => {
  const isShuoshuo = GLOBAL_CONFIG_SITE.pageType === 'shuoshuo'
  const option = null

  const getCount = () => {
    const countELement = document.getElementById('twikoo-count')
    if(!countELement) return
    twikoo.getCommentsCount({
      envId: 'https://twikoo.zzh-blog.club/',
      region: '',
      urls: [window.location.pathname],
      includeReply: false
    }).then(res => {
      countELement.textContent = res[0].count
    }).catch(err => {
      console.error(err)
    })
  }

  const init = (el = document, path = location.pathname) => {
    twikoo.init({
      el: el.querySelector('#twikoo-wrap'),
      envId: 'https://twikoo.zzh-blog.club/',
      region: '',
        placeholder: "|´・ω・)ノ嘿~都看到这儿了\n确定不评论一下再走嘛？\n(点完发送按钮等几秒哦~)",
        nicknamePlaceholder: "昵称/笔名",
        emailPlaceholder: "邮箱（不会公开）",
        urlPlaceholder: "个人站点",
      onCommentLoaded: () => {
        btf.loadLightbox(document.querySelectorAll('#twikoo .tk-content img:not(.tk-owo-emotion)'))
      },
      ...option,
      path: isShuoshuo ? path : (option && option.path) || path
    })

    

    isShuoshuo && (window.shuoshuoComment.destroyTwikoo = () => {
      if (el.children.length) {
        el.innerHTML = ''
        el.classList.add('no-comment')
      }
    })
  }

  const loadTwikoo = (el, path) => {
    if (typeof twikoo === 'object') setTimeout(() => init(el, path), 0)
    else btf.getScript('https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js').then(() => init(el, path))
  }

  if (isShuoshuo) {
    'Twikoo' === 'Twikoo'
      ? window.shuoshuoComment = { loadComment: loadTwikoo }
      : window.loadOtherComment = loadTwikoo
    return
  }

  if ('Twikoo' === 'Twikoo' || !true) {
    if (true) btf.loadComment(document.getElementById('twikoo-wrap'), loadTwikoo)
    else loadTwikoo()
  } else {
    window.loadOtherComment = loadTwikoo
  }
})()</script></div><script defer src="https://npm.elemecdn.com/jquery@latest/dist/jquery.min.js"></script><script defer data-pjax src="/js/cat.js"></script><canvas id="universe"></canvas><script defer src="/js/universe.js"></script><script async src="/js/title.js"></script><script async src="//npm.elemecdn.com/pace-js@1.2.4/pace.min.js"></script><script defer data-pjax src="/js/readPercent.js"></script><div class="aplayer no-destroy" data-id="8459282733" data-server="netease" data-type="playlist" data-fixed="true" data-autoplay="true" data-listmaxheight=400px data-order="random"> </div><script src="https://cdn.staticfile.org/jquery/3.6.3/jquery.min.js"></script><script async data-pjax src="/js/txmap.js"></script><script src="source/js/统计图颜色适配.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = false;
POWERMODE.mobile = true;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/click-heart.min.js" async="async" mobile="true"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/metingjs/dist/Meting.min.js"></script><script>(() => {
  const destroyAplayer = () => {
    if (window.aplayers) {
      for (let i = 0; i < window.aplayers.length; i++) {
        if (!window.aplayers[i].options.fixed) {
          window.aplayers[i].destroy()
        }
      }
    }
  }

  const runMetingJS = () => {
    typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
  }

  btf.addGlobalFn('pjaxSend', destroyAplayer, 'destroyAplayer')
  btf.addGlobalFn('pjaxComplete', loadMeting, 'runMetingJS')
})()</script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>(() => {
  const pjaxSelectors = ["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax"]

  window.pjax = new Pjax({
    elements: 'a:not([target="_blank"])',
    selectors: pjaxSelectors,
    cacheBust: false,
    analytics: false,
    scrollRestoration: false
  })

  const triggerPjaxFn = (val) => {
    if (!val) return
    Object.values(val).forEach(fn => fn())
  }

  document.addEventListener('pjax:send', () => {
    // removeEventListener
    btf.removeGlobalFnEvent('pjaxSendOnce')
    btf.removeGlobalFnEvent('themeChange')

    // reset readmode
    const $bodyClassList = document.body.classList
    if ($bodyClassList.contains('read-mode')) $bodyClassList.remove('read-mode')

    triggerPjaxFn(window.globalFn.pjaxSend)
  })

  document.addEventListener('pjax:complete', () => {
    btf.removeGlobalFnEvent('pjaxCompleteOnce')
    document.querySelectorAll('script[data-pjax]').forEach(item => {
      const newScript = document.createElement('script')
      const content = item.text || item.textContent || item.innerHTML || ""
      Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
      newScript.appendChild(document.createTextNode(content))
      item.parentNode.replaceChild(newScript, item)
    })

    triggerPjaxFn(window.globalFn.pjaxComplete)
  })

  document.addEventListener('pjax:error', e => {
    if (e.request.status === 404) {
      const usePjax = true
      true 
        ? (usePjax ? pjax.loadUrl('/404.html') : window.location.href = '/404.html')
        : window.location.href = e.request.responseURL
    }
  })
})()</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="text-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="输入你想搜索的关键字" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js"></script></div></div><!-- hexo injector body_end start --><script data-pjax>
    function butterfly_categories_card_injector_config(){
      var parent_div_git = document.getElementById('recent-posts');
      var item_html = '<style>li.categoryBar-list-item{width:24%;}.categoryBar-list{max-height: 380px;overflow:auto;}.categoryBar-list::-webkit-scrollbar{width:0!important}@media screen and (max-width: 650px){.categoryBar-list{max-height: 320px;}}</style><div class="recent-post-item" style="height:auto;width:100%;padding:0px;"><div id="categoryBar"><ul class="categoryBar-list"><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163139.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/Linux/&quot;);" href="javascript:void(0);">Linux</a><span class="categoryBar-list-count">3</span><span class="categoryBar-list-descr">C++笔记</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163140.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/C-初阶/&quot;);" href="javascript:void(0);">C++初阶</a><span class="categoryBar-list-count">19</span><span class="categoryBar-list-descr">C语言笔记</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_202507101631401.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/C语言/&quot;);" href="javascript:void(0);">C语言</a><span class="categoryBar-list-count">22</span><span class="categoryBar-list-descr">Linux笔记</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163130.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/Microi吾码/&quot;);" href="javascript:void(0);">Microi吾码</a><span class="categoryBar-list-count">2</span><span class="categoryBar-list-descr">C++笔记</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163135.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/C-进阶/&quot;);" href="javascript:void(0);">C++进阶</a><span class="categoryBar-list-count">19</span><span class="categoryBar-list-descr">低代码</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163137.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/优选算法/&quot;);" href="javascript:void(0);">优选算法</a><span class="categoryBar-list-count">11</span><span class="categoryBar-list-descr">数据结构笔记</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163136.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/前端基础/&quot;);" href="javascript:void(0);">前端基础</a><span class="categoryBar-list-count">5</span><span class="categoryBar-list-descr">入门常用算法</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163132.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/话题/&quot;);" href="javascript:void(0);">话题</a><span class="categoryBar-list-count">5</span><span class="categoryBar-list-descr">前端基础笔记</span></li><li class="categoryBar-list-item" style="background:url(https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250710163134.png);"> <a class="categoryBar-list-link" onclick="pjax.loadUrl(&quot;categories/初阶数据结构/&quot;);" href="javascript:void(0);">初阶数据结构</a><span class="categoryBar-list-count">10</span><span class="categoryBar-list-descr">杂谈</span></li></ul></div></div>';
      console.log('已挂载butterfly_categories_card')
      parent_div_git.insertAdjacentHTML("afterbegin",item_html)
      }
    if( document.getElementById('recent-posts') && (location.pathname ==='/'|| '/' ==='all')){
    butterfly_categories_card_injector_config()
    }
  </script><script data-pjax>
  function butterfly_footer_beautify_injector_config(){
    var parent_div_git = document.getElementById('footer-wrap');
    var item_html = '<div id="workboard"></div><p id="ghbdages"><a class="github-badge" target="_blank" href="https://hexo.io/" style="margin-inline:5px" data-title="博客框架为Hexo" title=""><img src= "" data-lazy-src="https://img.shields.io/badge/Frame-Hexo-blue?style=flat&amp;logo=hexo" alt=""/></a><a class="github-badge" target="_blank" href="https://butterfly.js.org/" style="margin-inline:5px" data-title="主题使用Butterfly" title=""><img src= "" data-lazy-src="https://img.shields.io/badge/Theme-Butterfly-6513df?style=flat&amp;logo=bitdefender" alt=""/></a></p>';
    console.log('已挂载butterfly_footer_beautify')
    parent_div_git.insertAdjacentHTML("beforeend",item_html)
    }
  var elist = 'null'.split(',');
  var cpage = location.pathname;
  var epage = 'all';
  var flag = 0;

  for (var i=0;i<elist.length;i++){
    if (cpage.includes(elist[i])){
      flag++;
    }
  }

  if ((epage ==='all')&&(flag == 0)){
    butterfly_footer_beautify_injector_config();
  }
  else if (epage === cpage){
    butterfly_footer_beautify_injector_config();
  }
  </script><script async src="https://unpkg.zhimg.com/hexo-butterfly-footer-beautify@1.0.0/lib/runtime.min.js"></script><script data-pjax>
  function butterfly_swiper_injector_config(){
    var parent_div_git = document.getElementById('recent-posts');
    var item_html = '<div class="recent-post-item" style="height: auto;width: 100%"><div class="blog-slider swiper-container-fade swiper-container-horizontal" id="swiper_container"><div class="blog-slider__wrp swiper-wrapper" style="transition-duration: 0ms;"><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;2025/02/28/话题/DeepSeek、Grok 和 ChatGPT 对比分析/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/77c5921463a44f418828ae47de6671e5.webp" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-02-28</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;2025/02/28/话题/DeepSeek、Grok 和 ChatGPT 对比分析/&quot;);" href="javascript:void(0);" alt="">DeepSeek、Grok 和 ChatGPT 对比分析：从技术与应用场景的角度深入探讨</a><div class="blog-slider__text">在人工智能领域，随着技术的快速发展，不同的工具和框架不断涌现，为开发者提供了更多选择。DeepSeek、Grok 和 ChatGPT 作为三款备受关注的工具，每一款都有其独特的优势和适用场景。本文将从技术特点、应用场景以及实际案例分析的角度，对这三款工具进行对比，帮助读者更好地理解它们的区别和适用场景</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;2025/02/28/话题/DeepSeek、Grok 和 ChatGPT 对比分析/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;2025/02/20/话题/C++方向后端开发学习指南/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/44fa280c73e53024f749363207753e1.png" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-02-20</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;2025/02/20/话题/C++方向后端开发学习指南/&quot;);" href="javascript:void(0);" alt="">当前就业形势下C++方向后端开发学习指南</a><div class="blog-slider__text">在信息技术飞速发展的今天，后端开发成为了软件开发领域中极其重要的组成部分。对于很多程序员来说，C++仍然是一个强大且广泛应用的编程语言，尤其在后端开发中有着不可忽视的地位。本文将深入探讨C++方向后端开发的学习路线，分析当前就业形势下的职业方向选择，并结合图示和代码示例，帮助读者系统化地学习C++后端开发</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;2025/02/20/话题/C++方向后端开发学习指南/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;2025/02/20/话题/AIGC训练效率/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/419f4f95b11526f92f62fe38778d0a9.png" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-02-20</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;2025/02/20/话题/AIGC训练效率/&quot;);" href="javascript:void(0);" alt="">AIGC训练效率与模型优化的深入探讨</a><div class="blog-slider__text">人工智能领域的发展，人工智能生成内容（ [AIGC](https://aigc.izzi.cn/)）越来越受关注。AIGC能够通过学习大量数据生成高质量内容，但训练效率和模型优化仍然是关键的研究方向。本博客将深入探AIGC的训练效率，与模型优化的相关策略和技术，提供相应代码示例和图示，以帮助读者更好地理解该领域</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;2025/02/20/话题/AIGC训练效率/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;2025/02/28/话题/如何高效利用DeepSeek/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/e640e59c2f92482993b52c845adf7844.webp" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-02-28</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;2025/02/28/话题/如何高效利用DeepSeek/&quot;);" href="javascript:void(0);" alt="">如何高效利用DeepSeek：深入探索AI搜索引擎的潜力</a><div class="blog-slider__text">随着人工智能技术的飞速发展，传统的搜索引擎正逐步向更智能化、个性化的方向演进。作为一款基于深度学习的AI搜索引擎，DeepSeek（深度求索）不仅在理解用户意图方面展现出色，还通过集成丰富的知识图谱和提供多样化的信息类型，成为现代用户的信息获取利器。本文将详细分析如何高效利用DeepSeek，探讨其核心技术、实际应用场景以及性能优化方法</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;2025/02/28/话题/如何高效利用DeepSeek/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl(&quot;2025/01/31/话题/本地部署Deepseek/&quot;);" href="javascript:void(0);" alt=""><img width="48" height="48" src= "" data-lazy-src="https://picture-bed000.oss-cn-shenzhen.aliyuncs.com/2373381f0feae7cd4964af546e9e462.png" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2025-01-31</span><a class="blog-slider__title" onclick="pjax.loadUrl(&quot;2025/01/31/话题/本地部署Deepseek/&quot;);" href="javascript:void(0);" alt="">如何快速高效本地部署DeepseekR1大模型？保姆级教程 无惧隐私威胁</a><div class="blog-slider__text">DeepSeek 隐私政策中提到了关于用户输入信息收集的条款，无论你输入什么文本，以及上传什么文件都会被第三方机构所收集，所以如果是在进行相关的项目研究或者实验进展分析的时候，就很有必要对数据进行隐私保护，且本地部署是支持离线的</div><a class="blog-slider__button" onclick="pjax.loadUrl(&quot;2025/01/31/话题/本地部署Deepseek/&quot;);" href="javascript:void(0);" alt="">详情       </a></div></div></div><div class="blog-slider__pagination swiper-pagination-clickable swiper-pagination-bullets"></div></div></div>';
    console.log('已挂载butterfly_swiper')
    parent_div_git.insertAdjacentHTML("afterbegin",item_html)
    }
  var elist = 'undefined'.split(',');
  var cpage = location.pathname;
  var epage = '/';
  var flag = 0;

  for (var i=0;i<elist.length;i++){
    if (cpage.includes(elist[i])){
      flag++;
    }
  }

  if ((epage ==='all')&&(flag == 0)){
    butterfly_swiper_injector_config();
  }
  else if (epage === cpage){
    butterfly_swiper_injector_config();
  }
  </script><script defer src="https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiper.min.js"></script><script defer data-pjax src="https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiper_init.js"></script><script data-pjax src="https://npm.elemecdn.com/hexo-filter-gitcalendar/lib/gitcalendar.js"></script><script data-pjax>
  function gitcalendar_injector_config(){
      var parent_div_git = document.getElementById('gitZone');
      var item_html = '<div class="recent-post-item" id="gitcalendarBar" style="width:100%;height:auto;padding:10px;"><style>#git_container{min-height: 280px}@media screen and (max-width:650px) {#git_container{min-height: 0px}}</style><div id="git_loading" style="width:10%;height:100%;margin:0 auto;display: block;"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50" xml:space="preserve"><path fill="#d0d0d0" d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z" transform="rotate(275.098 25 25)"><animatetransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"></animatetransform></path></svg><style>#git_container{display: none;}</style></div><div id="git_container"></div></div>';
      parent_div_git.insertAdjacentHTML("afterbegin",item_html)
      console.log('已挂载gitcalendar')
      }

    if( document.getElementById('gitZone') && (location.pathname ==='/about/'|| '/about/' ==='all')){
        gitcalendar_injector_config()
        GitCalendarInit("https://gitcalendar.zzh-blog.club/api?ZeroCoder-Zhang",['#d9e0df', '#c6e0dc', '#a8dcd4', '#9adcd2', '#89ded1', '#77e0d0', '#5fdecb', '#47dcc6', '#39dcc3', '#1fdabe', '#00dab9'],'ZeroCoder-Zhang')
    }
  </script><div class="js-pjax"><script async="async">var arr = document.getElementsByClassName('recent-post-item');
for(var i = 0;i<arr.length;i++){
    arr[i].classList.add('wow');
    arr[i].classList.add('animate__zoomIn');
    arr[i].setAttribute('data-wow-duration', '2s');
    arr[i].setAttribute('data-wow-delay', '1s');
    arr[i].setAttribute('data-wow-offset', '100');
    arr[i].setAttribute('data-wow-iteration', '1');
  }</script><script async="async">var arr = document.getElementsByClassName('card-widget');
for(var i = 0;i<arr.length;i++){
    arr[i].classList.add('wow');
    arr[i].classList.add('animate__zoomIn');
    arr[i].setAttribute('data-wow-duration', '');
    arr[i].setAttribute('data-wow-delay', '');
    arr[i].setAttribute('data-wow-offset', '');
    arr[i].setAttribute('data-wow-iteration', '');
  }</script></div><script defer src="https://npm.elemecdn.com/hexo-butterfly-wowjs/lib/wow.min.js"></script><script defer src="https://npm.elemecdn.com/hexo-butterfly-wowjs/lib/wow_init.js"></script><!-- hexo injector body_end end --><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/koharu.model.json"},"display":{"position":"right","hOffset":40,"vOffset":0,"width":150,"height":300},"mobile":{"show":false},"log":false});</script></body></html>